<html>
<head>
</head>
<body>
<div class="col-sm-12">
    <div class="animated fadeIn">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h4 class="panel-title">岗位列表</h4>
            </div>
            <div class="panel-body">
                <form class="form-horizontal" id="queryForm">
                    <div class="row">
                        <div class="form-group">
                            <label class="control-label col-sm-1" for="userName">岗位名:</label>
                            <div class="col-sm-2">
                                <input type="text" class="form-control" id="userName" name="userName">
                            </div>
                            <div class="col-sm-2">
                                <button type="button" id="searchFormSubmitBtn" class="btn btn-primary">查询</button>
                                <button type="button" id="searchFormResetBtn" class="btn btn-primary">重置</button>
                            </div>
                        </div>
                    </div>
                </form>
                <div id="tb">
                <@shiro.hasPermission name="/permission/post/create">
                <button id="addBtn" type="button"  class="btn btn-primary btn-sm " onclick="Post.create()"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span>新增</button>
                </@shiro.hasPermission>
                <@shiro.hasPermission name="/permission/post/delete">
                <button id="removeBtn" type="button"  class="btn btn-primary btn-sm " onclick="Post.batchDelete()"> <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>删除</button>
                </@shiro.hasPermission>
                </div>
                <table id="grid-data"></table>
                </div>
            </div>
        </div>
    </div>
</div>
<@shiro.hasPermission name="/permission/post/edit">
<input type="hidden" id="editPermission" value="true" />
</@shiro.hasPermission>
<script src="${ctx}/public/js/business/Organization.js"></script>
<script src="${ctx}/public/js/business/Resource.js"></script>
<script src="${ctx}/public/js/business/Post.js"></script>
<script>
    $(function () {
        var postGrid = Post.initGrid("#grid-data");
    });
</script>
</body>
</html>

